package com.ruoyi.xysl.service.impl;

import java.util.List;

import com.xysl.api.domain.XyslGarden;
import com.ruoyi.xysl.mapper.SysXyslGardenMapper;
import com.ruoyi.xysl.service.ISysXyslGardenService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 学校园区Service业务层处理
 *
 * @author xysl
 * @date 2025-01-17
 */
@Service
public class SysXyslGardenServiceImpl implements ISysXyslGardenService
{
    @Resource
    private SysXyslGardenMapper xyslGardenMapper;

    /**
     * 查询学校园区
     *
     * @param id 学校园区主键
     * @return 学校园区
     */
    @Override
    public XyslGarden selectXyslGardenById(Long id)
    {
        return xyslGardenMapper.selectXyslGardenById(id);
    }

    /**
     * 查询学校园区列表
     *
     * @param xyslGarden 学校园区
     * @return 学校园区
     */
    @Override
    public List<XyslGarden> selectXyslGardenList(XyslGarden xyslGarden)
    {
        return xyslGardenMapper.selectXyslGardenList(xyslGarden);
    }

    /**
     * 新增学校园区
     *
     * @param xyslGarden 学校园区
     * @return 结果
     */
    @Override
    public int insertXyslGarden(XyslGarden xyslGarden)
    {
        return xyslGardenMapper.insertXyslGarden(xyslGarden);
    }

    /**
     * 修改学校园区
     *
     * @param xyslGarden 学校园区
     * @return 结果
     */
    @Override
    public int updateXyslGarden(XyslGarden xyslGarden)
    {
        return xyslGardenMapper.updateXyslGarden(xyslGarden);
    }

    /**
     * 批量删除学校园区
     *
     * @param ids 需要删除的学校园区主键
     * @return 结果
     */
    @Override
    public int deleteXyslGardenByIds(Long[] ids)
    {
        return xyslGardenMapper.deleteXyslGardenByIds(ids);
    }

    /**
     * 删除学校园区信息
     *
     * @param id 学校园区主键
     * @return 结果
     */
    @Override
    public int deleteXyslGardenById(Long id)
    {
        return xyslGardenMapper.deleteXyslGardenById(id);
    }


}
